var netTool 
function UploadTool(_netTool) {
	netTool = _netTool
	this.uploadImg = function(filePath, fn) {
		uni.uploadFile({
			url:netTool.appInfo.apiUrl+ "/capi/tools/public/fileUpload?token=" + uni.getStorageSync('token') + "&fileName=" +'img',
			filePath:filePath,
			name:'file',
			success(res) {
				typeof fn == 'function' && fn(res);
			}
		})
	}
}

module.exports = UploadTool;
